package view;

import entity.Color;
import tool.TSUtility;

public class OperatorFunctionView {

    public static void OperatorFunctionMenu() throws Exception {
        ReaderView readerView = new ReaderView();
        BookView bookView = new BookView();

        while (true) {
            System.out.println(Color.getAnsiReset()+Color.getAnsiYellow());
            System.out.println("🔣-------~借阅系统~--------------🔣");
            System.out.println("🐕-------<1.读者管理>------------*");
            System.out.println("🐖-------<2.图书管理>------------*");
            System.out.println("🐱-------<3.借阅管理>------------*");
            System.out.println("🐱-------<4.基本信息维护管理>------*");
            System.out.println("🐕-------<5.退出>----------------*");
                char c = TSUtility.readMenuSelectionPro();
            switch (c) {
                case '1':
                    readerView.readerMenu();
                    break;
                case '2':
                    bookView.BookMenu();
                    break;
                case '3':
                    BorrowBookView.BorrowBookView();
                    break;
                case '4':

                    BaseView.baseMenu();
                    break;
                case '5':
                    return;


            }


        }
    }
}
